﻿@model IEnumerable<RonYee.Models.Book>

@{
    ViewBag.Title = "Search";
}

<div id="breadcrumb">
    <a class="home" href="@Url.Action("Index","Home")">Home</a>  &rsaquo; <a href="@Url.Action("Index","Store")">Shop</a>
</div>
<h1 class="page-title">All Books</h1>
<h2></h2>
<ul class="products">
<h1 class="page-title-inner">
 @using (Html.BeginForm("Search", "Store", FormMethod.Post))
 {
     <input type="text" id="s" name="s" /> <input type="submit" value="查找" id="Search" class="button" />
  }
</h1>

@foreach (var item in Model)
{
<li class="product border shadow first">
<a href="@Url.Action("Details", "Store", new { id = item.BookId })">
    <div class="thumbnail">
        <img width="150" height="150" src="@Url.Content(item.BookImage)" class="attachment-shop_small wp-post-image" alt="@item.BookName" title="@item.BookName" />    			
        <div class="thumb-shadow"></div>
        <div style=" height:50px; width:140px;"><strong class="below-thumb">@item.BookName</strong></div>
     </div>
     <span class="price">价格： @item.CurrentPrice 库存： @item.BookCount </span>		
</a>
<div class="buttons">
    <a href="@Url.Action("Details", "Store", new { id = item.BookId })" class="details">DETAILS</a>&nbsp;
    <a href="@Url.Action("AddToCart", "ShoppingCart", new { id = item.BookId })" class="add-to-cart">ADD TO CART</a>
</div>
</li>
}
</ul>
<div class="clear"></div>
